@use 'sass:color';
// TOOLBAR
.maputnik-toolbar {
  position: fixed;
  height: $toolbar-height;
  width: 100%;
  z-index: 100;
  left: 0;
  top: $toolbar-offset;
  background-color: $color-black;
}

.maputnik-toolbar-logo-container {
  position: relative;
}

.maputnik-toolbar-logo {
  text-decoration: none;
  display: block;
  flex: 0 0 190px;
  width: 200px;
  text-align: left;
  background-color: $color-black;
  padding: $margin-2;
  height: $toolbar-height;
  position: relative;
  overflow: hidden;

  h1 {
    display: inline;
    line-height: 26px;
  }

  img {
    width: 30px;
    padding-right: $margin-2;
    vertical-align: top;
  }
}

.maputnik-toolbar-link {
  vertical-align: top;
  height: $toolbar-height;
  display: inline-block;
  padding: $margin-3;
  font-size: $font-size-5;
  cursor: pointer;
  color: $color-white;
  text-decoration: none;
  line-height: 20px;

  h1 {
    position: relative;
  }

  &:hover {
    background-color: $color-midgray;
  }
}

.maputnik-toolbar-link--highlighted {
  line-height: 1;
  padding: $margin-2 $margin-3;

  .maputnik-toolbar-link-wrapper {
    background-color: $color-white;
    border-radius: 2px;
    padding: $margin-2;
    margin-top: $margin-1;
    color: $color-black;
    display: block;
  }

  &:hover {
    background-color: $color-black;
  }

  &:hover .maputnik-toolbar-link-wrapper {
    background-color: color.adjust($color-midgray, $lightness: 12%);
    color: $color-white;
  }
}

.maputnik-toolbar-name {
  text-transform: capitalize;
}

.maputnik-toolbar-version {
  font-size: 10px;
  margin: 0 4px;
  white-space: nowrap;
}

.maputnik-toolbar-action {
  background: inherit;
  border-width: 0;
  @extend .maputnik-toolbar-link; /* stylelint-disable-line */
}

.maputnik-toolbar-select {
  background: inherit;
  border-width: 0;
  @extend .maputnik-toolbar-link; /* stylelint-disable-line */

  select {
    margin: 0 6px;
    border-width: 0;
    display: inline;
    width: auto;
    border: solid 1px $color-midgray;
    vertical-align: inherit;
    margin-top: -2px;
  }
}

.maputnik-icon-text {
  padding: 0 $margin-1;
}

.maputnik-icon-action {
  display: inline;
  margin: 0 $margin-1;
}

.maputnik-toolbar__inner {
  display: flex;
}

.maputnik-toolbar__actions {
  white-space: nowrap;
  flex: 1;
  overflow-y: auto;
}

.maputnik-toolbar-skip {
  all: unset;
  border: solid 1px transparent;
  position: absolute;
  overflow: hidden;
  width: 0px;
  height: 100%;
  text-align: center;
  display: block;
  background-color: $color-black;
  z-index: 999;
  line-height: 40px;
  left: 0;
  top: 0;

  &:active,
  &:focus {
    width: 100%;
    border-color: $color-lowgray;
  }
}

